package effective_java.design_pattern.builder;

/**
 * @author Try
 */
public abstract class Student {

    protected Student() {}

    public interface Builder{
        Student.Builder id(String id);
        Student.Builder name(String name);
        Student.Builder age(Integer age);
        Student.Builder address(String address);

        Student build();
    }

    public static Student.Builder newBuilder(){
        return new StudentBuilderImpl();
    }
}
